package com.lv.dhart.base;

import com.lv.dhart.token.TokenManager;

public class BasePresenter<V extends IBaseView> {
    protected V view;

    //绑定方法
    public void attachView(V view) {
        this.view = view;
    }

    //调用这个可以防止内存泄漏
    public void dataView() {
        this.view = null;
    }

    public String getToken() {
        return TokenManager.getInstance().getAuthModel().getAccessTokenWithBearer();
    }

}
